package org.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "关注表")
@TableName(value = "blog_user_follow")
public class BlogUserFollow {
    @ApiModelProperty(value = "用户关注表主键")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "用户id")
    @TableField(value = "userId")
    private String userId;

    @ApiModelProperty(value = "关注用户id")
    @TableField(value = "follow_user_id")
    private String followUserId;

    @ApiModelProperty(value = "关注用户昵称")
    @TableField(value = "follow_nickname")
    private String followNickname;

    @ApiModelProperty(value = "备注名")
    @TableField(value = "note_name")
    private String noteName;

    @ApiModelProperty(value = "关注状态，0：已取关，1：已关注")
    @TableField(value = "follow_state")
    private Integer followState;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time")
    private Date updateTime;
}

